package com.maozw.manager.mapper;
import com.maozw.manager.model.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author
 * @Title: ${ProductDao}
 * @Package ${com.maozw.dynamicdatasource.mappers}
 * @Description: ${ProductDao}
 * @date 2018/3/2318:46
 */
@Mapper
public interface ProductDao {
    Product select(@Param("id") long id);

    Integer update(Product product);

    Integer insert(Product product);

    Integer delete(long productId);

    List<Product> getAllProduct();
}
